// 定义本地存储的 token 名字
const KEY = 'mytoken-rent-house'

// 获取 token
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 存储 token
export const setToken = (token) => {
  return localStorage.setItem(KEY, token)
}
 
// 删除 token
export const delToken = () => { 
  return localStorage.removeItem(KEY)
}